<%inherit file="/admin/admin_base.html" />

<%block name="innav">
<li><a href="${ reverse_url('admin:forum:catalog') }">${ _("Forum Catalog") }</a></li>
<li>${ _("Configure Forum Catalog") }</li>
</%block>

<%block name="main">

<div class="container-fluid">
  <form class="form-horizontal" method="POST" enctype="multipart/form-data">${ xsrf_form_html() }

    <div class="control-group">
      <label class="control-label" for="name">${ _("Name") }</label>
      <div class="controls">
        ${ form.name() }
        ${ form.html_errors(form.name.errors) }
      </div>
    </div>

    <div class="control-group">
      <label class="control-label" for="logo">${ _("Logo") }</label>
      <div class="controls">
        % if CATALOG:
        <img style="width: 48px; heigth: 48px;" src="${ CATALOG.logourl }" />
        % endif
        ${ form.logo() }
        ${ form.html_errors( form.logo.errors ) }
      </div>
    </div>

    <div class="control-group">
      <label class="control-label" for="summary">${ _("Summary") }</label>
      <div class="controls">
        ${ form.summary() }
        ${ form.html_errors(form.summary.errors) }
      </div>
    </div>

    <div class="control-group">
      <label class="control-label" for="description">${ _("Description") }</label>
      <div class="controls">
        ${ form.description() }
        ${ form.html_errors(form.description.errors) }

        <button type="submit" class="btn">${ _("Submit") }</button>
      </div>
    </div>
  </form>
</div>

</%block>
